import axios from '@/libs/api.request'

const prefix = '/web/device'

const DeviceApi = {
  pageResult(role) {
    return axios.request({
      url: prefix + '/pageResult',
      data: role,
      method: 'post'
    })
  },
  saveOrUpdate(role) {
    return axios.request({
      url: prefix + "/saveOrUpdate",
      method: 'post',
      data: role
    })
  },
  delete(id) {
    return axios.request({
      url: prefix + '/' + id,
      method: 'delete'
    })
  }
}

export default DeviceApi
